<?php
return [
    'settings' => [
        'displayErrorDetails' => true,

        'logger' => [
            'name' => 'slim-app',
            'level' => Monolog\Logger::DEBUG,
            'path' => SYSTEM_PATH . '/logs/app.log',
        ],
        'db' => [
            'host' => '112.124.37.117',
            'port' => '3306',
            'user' => 'root',
            'passwd' => 'AtmediaCCDBsdad223S9oOlskss',
            'dbname' => 'tcp',
        ],
        'view' => [
            'template_dir' => SYSTEM_PATH . '/app/view',//模板文件的路径
            'compile_dir' => SYSTEM_PATH . '/app/template_c',//模板文件编译后得到的文件的路径
            'cache_dir' => SYSTEM_PATH . '/app/cache',//缓冲文件的路径
            'caching' => false,//开启缓冲，缓冲默认是关闭的
            'cache_lifetime' => 120,//缓冲的保留时间
            'left_delimiter' => '{%',//缓冲的保留时间
            'right_delimiter' => '%}'//缓冲的保留时间

        ],
        'page' => [
            'pagesize' => 10
        ],

        'type' => [
            'media' => ['转发', '原创', '群分享', '微博分享']
        ],
        'redis' => [
            'host' => '112.124.37.117',
            'port' => 6379,
            'password' => 'cEQy8F1wEQs7gXzBEKGA',
        ],
        'weichat' => [
            'appid' => 'wx3a6c066e1df35296',
            'appsecret' => '0dcd2bf1606bc3cf69b42b7444e1e991',
            'redirect_uri'=>urlEncode ('http://test.at-media.com.cn/redirect')
        ],
        'msg'=>[
            'code'=>'848a6a216044489aa4b8c7af64863653',//短信api code
            'tpl_id'=>'TP1804199'
        ]

    ]


];
?>